#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Rectangle.h>
#include <Square.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Square)
{
        TEST(Calculate the area of square)
        {
                Square square(3.0);
                ASSERT_EQ(9.0, square.getArea());
        }

        TEST(Calculate the area of square)
        {
                Square square(3.12345);
                ASSERT_EQ(9.73, square.getArea());
        }

        TEST(Calculate the perimeter of square)
        {
                Square square(3.0);
                ASSERT_EQ(12.0, square.getPerimeter());
        }

        TEST(Calculate the perimeter of square)
        {
                Square square(3.5678);
                ASSERT_EQ(14.24, square.getPerimeter());
        }
};
